package com.yl.project.lvyou.knowledge.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.yl.framework.aspectj.lang.annotation.Excel;
import javax.persistence.*;
import com.yl.framework.web.domain.BaseEntity;

/**
 * 咨询问答知识库对象 qa_knowledge
 * 
 * @author yl
 * @date 2025-03-16
 */
@Table(name="qa_knowledge")
public class QaKnowledge extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 问答ID */
    @Id
    @Column(name = "id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;
    /** 景区ID，NULL表示通用问答 */
    @Excel(name = "景区ID，NULL表示通用问答")

    @Column(name = "scenic_id")
    private Long scenicId;
    @Column(name = "scenic_name")
    private String scenicName;
    /** 问题类型 */
    @Excel(name = "问题类型")

    @Column(name = "question_type")
    private String questionType;
    /** 关键词，多个用逗号分隔 */
    @Excel(name = "关键词，多个用逗号分隔")

    @Column(name = "keywords")
    private String keywords;
    /** 问题 */
    @Excel(name = "问题")

    @Column(name = "question")
    private String question;
    /** 回答内容 */
    @Excel(name = "回答内容")

    @Column(name = "answer")
    private String answer;
    /** 是否预设问题：0-否，1-是 */
    @Excel(name = "是否预设问题：0-否，1-是")

    @Column(name = "is_preset")
    private Integer isPreset;
    /** 命中次数 */
    @Excel(name = "命中次数")

    @Column(name = "hit_count")
    private Long hitCount;
    /** 状态：0-禁用，1-启用 */
    @Excel(name = "状态：0-禁用，1-启用")

    @Column(name = "status")
    private Integer status;

    private Long userId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setScenicId(Long scenicId) 
    {
        this.scenicId = scenicId;
    }

    public Long getScenicId() 
    {
        return scenicId;
    }
    public void setQuestionType(String questionType) 
    {
        this.questionType = questionType;
    }

    public String getQuestionType() 
    {
        return questionType;
    }
    public void setKeywords(String keywords) 
    {
        this.keywords = keywords;
    }

    public String getKeywords() 
    {
        return keywords;
    }
    public void setQuestion(String question) 
    {
        this.question = question;
    }

    public String getQuestion() 
    {
        return question;
    }
    public void setAnswer(String answer) 
    {
        this.answer = answer;
    }

    public String getAnswer() 
    {
        return answer;
    }
    public void setIsPreset(Integer isPreset) 
    {
        this.isPreset = isPreset;
    }

    public Integer getIsPreset() 
    {
        return isPreset;
    }
    public void setHitCount(Long hitCount) 
    {
        this.hitCount = hitCount;
    }

    public Long getHitCount() 
    {
        return hitCount;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getScenicName() {
        return scenicName;
    }

    public void setScenicName(String scenicName) {
        this.scenicName = scenicName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("scenicId", getScenicId())
            .append("questionType", getQuestionType())
            .append("keywords", getKeywords())
            .append("question", getQuestion())
            .append("answer", getAnswer())
            .append("isPreset", getIsPreset())
            .append("hitCount", getHitCount())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
